/* 
  Copyright (c) SilverLining 2015
  Date:    2016-1-7
  File:    shim_data.cpp  
  Description: 

*/

#include "stdafx.h"

using namespace System;
using namespace System::Security;
using namespace System::Collections::Generic;
using namespace System::Runtime::InteropServices;

#include "shim_object.h"
#include "shim_process.h"
#include "shim_data.h"
#include "Archiver.h"
#include "GameObject.h"
#include "TimerState.h"
#include "Message.h"
#include "Package.h"
#include "Process.h"

using namespace m;
using namespace m::alloc;

namespace SL
{
	namespace M
	{
		shim_data::shim_data()
		{
		}

		void shim_data::init(Object ^ obj)
		{
			assert(obj != nullptr);
			if (obj != nullptr)
			{
				Obj = obj;
			}
		}

		void * shim_data::operator new(size_t sz)
		{
			return ::operator new(sz, pool);
		}

		void shim_data::operator delete(void * ptr)
		{
			::operator delete(ptr, pool);
		}

		std::wstring shim_data::to_string() const
		{
			return object::to_string() +  L"+<message data>";
		}
	}
}